	let SYSTEM = uni.getSystemInfoSync()
	export const  getStatusHeight = () => SYSTEM.statusBarHeight || 20
	export const getTitleBarHeight = () => {
		if(uni.getMenuButtonBoundingClientRect){
			let { top, height } = uni.getMenuButtonBoundingClientRect()
			return height + (top - getStatusHeight()) * 2
		} else{
			return 50
		}
	}

export const getNavBarHeight = () => 	getTitleBarHeight() + getStatusHeight()

export const getLeftIconLeft = () => {
	//  #ifdef MP-TOUTIAO
	let { leftIcon: { width, left } } = tt.getCustomButtonBoundingClientRect()
	return left + parseInt(width) + 5
	// #endif
	
	//  #ifndef MP-TOUTIAO
	return 0
	// #endif
}	